@echo off
setlocal
plugin /L Lua

gosub main

plugin /U Lua
endlocal
quit

:main

echo Lua version %_lua_version

echo Trying Lua command with chunk
lua print("Hello, command line")

echo Trying Lua command with redirected input
lua <<EOF
print("Hello, world")
EOF

echo Trying Lua function
echo %@lua[=3+3]

return
